home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
wildcat
/
mnode14.zip
/
ALT-WAY1.ZIP
/
NODEX.ALT
< prev
next >
Wrap
Text File
|
1992-11-24
|
3KB
|
97 lines
@echo off
rem C:\WC30\WCWORK\NODEx\NODEx.BAT
rem Generic BBS NODE startup template .BAT
ren Be sure to RENAME this .BAT file to the proper node number
rem IE: NODE1.BAT, NODE2.BAT etc...
rem -----
rem Set This node's specific configuration by
rem editing the next 3 SET commands:
rem ---------------------------------------
set WCNODEID=x
set WCPORTID=x
set WCMDM=HSTx
rem No other node information is required to be entered
rem by the Sysop other than the 3 lines above!
rem -----
rem Begin Generic .BAT file routines:
Echo Executing NODE%WCNODEID%.BAT
Echo ====
Echo Testing for C:\WC30\NODE%WCNODEID%.UP
if exist C:\WC30\NODE%WCNODEID%.UP goto NODE_CONFLICT
Echo ====
Echo NODE%WCNODEID% is not running, bringing up NODE%WCNODEID% normally.
echo ====
Echo Locking out NODE %WCNODEID% via NODE%WCNODEID%.UP tag file.
copy c:\wc30\node.up c:\wc30\NODE%WCNODEID%.UP>NUL:
echo ====
Echo Installing NODE%WCNODEID% TSR's and environment variables.
doskey /insert <-----------------why run twice?
rem AL Woolley: Because DOSKEY does NOT work in a DV Window unless it is
rem Loaded in each window... Sigh.
prompt NODE %WCNODEID% $p$g
dvansi
cls
Echo ====
Echo NODE%WCNODEID%.BAT complete. Starting up the BBS via C:\WC30\CAT.BAT.
cd c:\wc30
cat.bat <---------------------silly to do... just type 'WILDCAT' and do it!
rem AL Woolley: No Way! There is no other way to delete the tag file
rem properly, let WC! execute ERROR level exits etc... without calling
rem CAT.BAT so error level tests can be used and so on...
goto EXIT
REM ----------------------------
:NODE_CONFLICT
CLS
Echo Node %WCNODEID% Conflict detected!
Echo -----
Echo
Echo NODE%WCNODEID%.UP tag file found in C:\WC30. One of two things
Echo has occured:
Echo
Echo 1) You are attempting to start up a 2nd copy of NODE %WCNODEID%
Echo under Desqview.
Echo
Echo 2) The BBS did not terminate normally (there was a crash or reboot)
Echo via CAT.BAT.
Echo
Echo Please verify that you are not attempting to start up a 2nd copy of
Echo NODE %WCNODEID%. If there was a crash, please run CLEANUP.BAT from
Echo the C:\WC30\WCWORK\NODE%WCNODEID% directory.
cd c:\wc30\wcwork\node%WCNODEID%
:EXIT
Echo
Echo NODE%WCNODEID%.BAT Done! <--------------why? this file, once executing
Echo the cat.bat wouldn't return to
itself.
rem Al Woolley: Because the screen has been cleared. The idea is to provide a
rem an "idiot" proof setup. The novice sysop needs a lot of
rem hand-holding. This will only be ECHO'd on an node conflict
rem error. The sysop needs to know WHAT called out the error.
rem to avoid confusing a CAT.BAT or WILDCAT error callout.
rem This kind of documenting is manditory in the computing
rem world I work in (commercial $$$$ programming). It certainly
rem doesn't seem to hurt anything???